package com.ys.enume.mail;

public class MailMainEnum {
	
	public enum Emergent {
		NORMAL("普通", 1), VERY("加急", 2), VERY_VERY("特急", 3);
		public String name;
		public Integer value;

		private Emergent(String name, Integer value) {
			this.name = name;
			this.value = value;
		}
		
		public static boolean checkIn(String value) {
			if (value == null) {
				return false;
			} else {
				for (Emergent e : Emergent.values()) {
					if (value.equals(e.value)) {
						return true;
					}
				}
			}
			return false;
		}
	}
}
